//
//  DataSportsTableViewCell.m
//  LiveSoftware
//
//  Created by lanou3g on 15/7/23.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "DataSportsTableViewCell.h"

@implementation DataSportsTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.leagueLogo = [[UIImageView alloc] initWithFrame:CGRectMake(kScreenIp6(25), kScreenIp6(20), kScreenIp6(50), kScreenIp6(50))];
        self.leagueLogo.layer.cornerRadius = kScreenIp6(25);
        [self.leagueLogo setClipsToBounds:YES];
        self.leagueLogo.image = [UIImage imageNamed:@"zhudui_1"];
        [self.contentView addSubview:_leagueLogo];
        
        CGFloat leagueNameX = _leagueLogo.frame.origin.x;
        CGFloat leagueNameY = CGRectGetMaxY(_leagueLogo.frame) + kScreenIp6(10);
        CGFloat leagueNameW = CGRectGetWidth(_leagueLogo.frame);
        CGFloat leagueNameH = kScreenIp6(20);
        self.leagueName = [[UILabel alloc] initWithFrame:CGRectMake(leagueNameX, leagueNameY, leagueNameW, leagueNameH)];
        self.leagueName.textColor = [UIColor whiteColor];
        self.leagueName.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_leagueName];
    }
    return self;
}

@end
